//
//  DBTools.h
//  owner-leisure
//
//  Created by lanou on 16/4/27.
//  Copyright © 2016年 吴肖刚. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NewsModel.h"

@interface DBTools : NSObject

+(instancetype)sharedTools;

// 添加数据
-(BOOL)addReadCollectionWithModel:(NewsModel *)model;

// 删除所有
-(BOOL)deleteAllReadCollection;
// 删除数据
-(BOOL)deleteReadCollectionWithModel:(NewsModel *)model;


// 查询所有数据
-(NSMutableArray<NewsModel *> *)selectReadCollection;
// 根据ID查找
-(NewsModel *)selectReadCollectionWithURL:(NSString *)URL;





@end
